package com.ruoyi.zhgd.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 自建部门树结构业务对象 zj_organization_structure_tree
 *
 * @author zyb
 * @date 2023-10-11
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ZjOrganizationStructureTreeBo extends BaseEntity {

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 父ID
     */
    @NotNull(message = "父ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentId;

    /**
     * 部门ID
     */
    @NotNull(message = "部门ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptId;

    /**
     * 部门名称
     */
    @NotBlank(message = "部门名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deptName;

    /**
     * 状态（0  启用   1 停用）
     */
    @NotBlank(message = "状态（0  启用   1 停用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;


}
